import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router'
import "./permission.js"
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// 引入 Font Awesome
import '@fortawesome/fontawesome-free/css/all.css'
import VueSpeech from 'vue-speech'

 


// 开发环境下引入 mock 服务
// if (process.env.NODE_ENV === 'development') {
//   import('./mock/mockServe.js').then(() => {
//     console.log('Mock service initialized')
//   }).catch(err => {
//     console.error('Failed to initialize mock service:', err)
//   })
// }

const app = createApp(App)
app.use(router)
app.use(ElementPlus, { locale: zhCn },VueSpeech)
app.mount('#app')
